<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>数据清洗v3.0</title>
    <style type="text/css" media="screen">
        input {
            margin:10px 0 0 10px;
            background:blueviolet;
            color:#fff;
            width:150px;
            height:30px;
            font:14px Verdana, Arial, Helvetica, sans-serif;
            }
        #logout {
            margin:10px 0 0 10px;
            background:blueviolet;
            color:#ffc0cb;
            width:150px;
            height:30px;
            font:14px Verdana, Arial, Helvetica, sans-serif;
            }
    </style>
</head>
<body>

    <br>

{#    #}
    {% if companyInfo %}
        <div>
            <table border="1">
                <tr><th>Id</th><th>公司名</th></tr>
                {% for item in companyInfo %}
                    <tr><td>{{item.id}}</td><td>{{item.companyName}}</td></tr>
                {% endfor %}
            </table>

        </div>

        <a href="downloadNameInfo?filenameMd5={{ filenameMd5 }}">下载公司名称详细内容</a>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{#        <a href="downloadNameFenpianFile?filenameMd5={{filenameMd5}}">下载公司名称单元文件</a>#}


        <input type="button" onclick='companyfunc()' value="下载公司名称单元文件" />

    {% endif %}
    <div>
        <button type="button" id="contact" onclick="javascrtpt:window.location.href='contactHandler?filenameMd5={{ filenameMd5 }}'">联系方式</button>
    </div>
    <br>
    <br>
    <br>
    <br>
    <input type="button" value="返回首页"
onclick="javascrtpt:window.location.href='returnHandler'">
    &nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="退出" id="logout"
onclick="javascrtpt:window.location.href='logout'">
{% include "share/footer.html" %}

<script>
    function companyfunc() {
       var url = location.search;
       var tmp=url.indexOf("?");
       var str = url.substr(tmp+1);
       var strs = str.split("=");
       var param=strs[1]
       alert('提示：\n退出登录后数据会自动被删除，系统不保留任何数据');
       window.location.href='downloadNameInfo?filenameMd5='+param;
       //window.location.href='index';
    }
</script>


</body>
</html>